<%@ taglib uri="/WEB-INF/myfaces_html.tld" 	prefix="h" %>
<%@ taglib uri="/WEB-INF/myfaces_core.tld" 	prefix="f" %>
<%@ taglib uri="/WEB-INF/tomahawk.tld"     	prefix="t" %>
<%@ taglib uri="/WEB-INF/myfaces_sandbox.tld"   prefix="s" %>

<f:view>    
    <jsp:include page="/intestazione.jsp">
        <jsp:param name="titolo" value="Gestione Prenotazione"/>
    </jsp:include>
    <jsp:include page="/menu.jsp"/>
    <script language="javascript" src="./script/popup_full_center.js"></script>

    <br />
    <table class="dataTableGestisci_Table" style="border: 2pt solid white; margin-bottom: -15px;" align="center">
        <hr />
        <tr>  
            <td class="intestazionePagina" align="center">
                <strong>LISTA PRENOTAZIONI</strong></td>                        
        </tr>        
    </table>

    <h:panelGrid styleClass="navigazione_Table"/>   
    <h:form id="erroriDataBase" rendered="false">
        <f:verbatim><table><td align="left" class="messaggiErrore" height="2px"></f:verbatim>           
                <h:messages style="color: red" showDetail="true" showSummary="false"/>
                <f:verbatim></td></table></f:verbatim>
            </h:form>  
            <h:form>
                <t:saveState value="#{beanPrenotazione}"/>            
                <t:panelTab id="tab1" label="prenotazione">

            <t:dataTable id="gestisciPrenotazione" var="lista" value="#{gestisci.listaOggetti}" rows="10" preserveDataModel="true"           
                         styleClass="dataTableGestisci_Table" 
                         headerClass="dataTableGestisci_Header"
                         rowClasses="dataTableGestisci_Row1, dataTableGestisci_Row2"          
                         columnClasses="dataTableGestisci_Column" 
                         
                         >  

                <t:column width="10%">
                    <f:facet name="header">
                        <t:outputText value="Numero" />
                    </f:facet>
                    <t:outputText value="#{lista.numero}" /> 
                </t:column>

                <t:column width="70%">
                    <f:facet name="header"  >
                        <t:outputText value="Nominativo" />
                    </f:facet>
                    <t:outputText value="#{lista.beanUtente.cognome} #{lista.beanUtente.nome}" /> 
                </t:column>   

                <t:column width="10%">
                    <f:facet name="header"  >
                        <t:outputText value="Data Prenotazione" />
                    </f:facet>
                    <t:outputText value="#{lista.dataPrenotazione}" >
                        <f:convertDateTime pattern="dd/MM/yyyy" type="both" timeZone="Europe/Rome"/>
                    </t:outputText>
                </t:column>   

                <t:column width="2%" headerstyleClass="dataTableGestisci_Header_Trasparent">
                    <f:facet name="header">
                        <t:outputText value=""/>
                    </f:facet>
                    <h:commandLink dir="RTL" title="dettaglio Storico" action="#{gestisci.caricaOggettoLista}">
                        <t:graphicImage url="/image/visualizza.png" border="0"/>
                        <f:param name="idBean" value="#{lista.id}" />
                        <f:param name="nomeBean" value="beanPrenotazione" />                            
                    </h:commandLink>
                </t:column>
            </t:dataTable>   
            <f:verbatim><table></f:verbatim>
                <f:verbatim><tr></f:verbatim>                
                    <f:verbatim><td></f:verbatim>                
                        <h:commandLink styleClass="commandLink_Style" dir="RTL" action="benvenuto" >
                            <t:graphicImage url="/image/go-home.png" border="0"/>
                        </h:commandLink>              
                        <f:verbatim></td></f:verbatim>                
                    <f:verbatim><td width="90%" align="center"></f:verbatim>                
                        <h:panelGrid columns="2" align="center">
                            <t:dataScroller id="scroller" paginatorActiveColumnStyle="background: white" for="gestisciPrenotazione" fastStep="10" 
                                            rowsCountVar="rowsCount" displayedRowsCountVar="displayedRowsCountVar" paginator="false" 
                                            paginatorMaxPages="20">
                                <f:facet name="previous">
                                    <t:graphicImage url="/image/asinistra.gif" border="0" />
                                </f:facet>
                                <f:facet name="next">
                                    <t:graphicImage url="/image/adestra.gif" border="0" />
                                </f:facet>
                            </t:dataScroller>
                        </h:panelGrid>
                        <f:verbatim></td></f:verbatim>   
                    <f:verbatim><td></f:verbatim>    
                       
                        <f:verbatim></td></f:verbatim> 
                    <f:verbatim><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
                        <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></f:verbatim>    

                    <f:verbatim><td></f:verbatim>    
                        <t:commandLink id="aiuto" onclick="loadurl('info/legendaBottoniGestisci.jsf');" immediate="true">
                            <t:graphicImage url="image/help.png" border="0" title="Aiuto"/>
                        </t:commandLink>
                        <f:verbatim></td></f:verbatim> 

                    <f:verbatim><td></td><td></td><td></td><td></td><td></td><td></td><td></td></f:verbatim>    

                    <f:verbatim></tr></f:verbatim>    

                <f:verbatim></table></f:verbatim>      
            </t:panelTab>
        </h:form>

    <jsp:include page="/piePagina.jsp"/>    
</f:view>    